<!--#include file="Config.asp" -->
<!--#include file="Header.asp" -->
<!--#include file="emp_is.asp"-->

<%
If request("fatherID")<>"" then
fatherID=int(request("fatherID"))
Else
fatherID=90
End if
%>

<table class="table">
	<tr>
		<th width="180" valign='top'>
<a href="?fatherID=0"">0. 全部模块</a><br>



<%
sql="select * from basic_treeNav where fatherID=0 order by paixu"
rs.open sql,Conn,1,1
for m=1 to rs.recordcount
%>
<a href="?fatherID=<%=int(rs("ID"))%>" ><%=int(rs("paixu"))%>.<%=int(rs("ID"))%>.<%=Trim(rs("name"))%></a><br>
<%
rs.moveNext
Next
rs.close
%>

</td>
<td valign='top'>

<table class="table">
<thead>
<tr>

<th>ID</th>
<th>Edit/Fatherid/paixu/点击修改</th>
<th>URL</th>
<th>iconCls</th>
<th>Comment</th>
</TR>
</thead>
<tbody>

<%
If fatherID=0 then
sql="select * from basic_treeNav where fatherID="&fatherID&" order by paixu"
else
sql="select * from basic_treeNav where ID="&fatherID&" order by paixu"
End if
rs.open sql,Conn,1,1
r_f_count=rs.recordcount
for r_f=1 To r_f_count
s_fatherID=int(rs("id"))
s_URL=Trim(rs("URL"))
%>
<tr bgcolor='#ffff00'>
<TD><%=Trim(rs("id"))%></TD>
<TD><%=Trim(rs("name"))%></TD>
<td ><%=s_URL%></TD>
<td ><%=Trim(rs("iconCls"))%></TD>
<TD><%=Trim(rs("comment"))%></TD>
</tr>
<%
'二级菜单开始
sqls="select * from basic_treeNav where FatherID='"&s_fatherID&"' order by paixu"
RSS.open sqls,Conn,1,1
r_s_count=RSS.recordcount
for r_s=1 to r_s_count
ID=int(RSS("id"))
ss_url=Trim(rss("URL"))

%>
<tr>
<TD ><%=ID%></TD>
<TD><%=Trim(RSS("name"))%></TD>
<td ><%=Trim(RSS("URL"))%></TD>
<td ><%=Trim(RSS("iconCls"))%></TD>
<TD><%=Trim(RSS("Comment"))%></TD>
</tr>


<%
RSS.moveNext
Next
RSS.close

rs.MoveNext
Next
'End If
rs.close
%>
</tbody>


</Table>


</td>
	</tr>
</table>


<!--#include file="Footer.asp" -->